<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title><%= @pagetitle %> 我爱注册码wWw.52ZcM.CoM</title>
  <%= stylesheet_link_tag 'main' %>
  <%= stylesheet_link_tag 'scaffold' %>
  <%= javascript_include_tag :defaults,:charset=>"utf-8" %>
</head>
<body>
	<div id="content">
		<div id="top">
			<div class="side">
				<div id="logo">
					<a href="http://www.52zcm.com"><img src="/images/big_logo.gif" /></a>
					
				</div>
				<div id="topside">
					<div id="topsearch">
						<% form_tag("/zcm/search",:method=>:get) do -%>
							<input name="keyword" class="" size="20"  value="<%=h @keyword%>"  />
							<input type="submit" value=" 搜 索 " class="button1"/>
						<% end -%>
					</div>
				</div>
			</div>
		</div>
		<div id="menu">
			<div class="side">
				<ul>
					<li <%="class=active" if(@menu_index==1)%>><a href="/">注册码</a><div class="triangle"></div></li>
					<li <%="class=active" if(@menu_index==2)%>><a href="#">注册机</a><div class="triangle"></div></li>
					<li <%="class=active" if(@menu_index==3)%>><a href="#">破解补丁</a><div class="triangle"></div></li>
					<li <%="class=active" if(@menu_index==4)%>><a href="/user/reg">注册</a><div class="triangle"></div></li>
					<%if !session[:system].blank?%>
					<li <%="class=active" if(@menu_index==5)%>><a href="/admin/zcm">管理</a><div class="triangle"></div></li>
					<%end%>
				</ul>
			</div>
		</div>
		<div id="submenu">
			<div class="side">
				<%if(@menu_index==5)%>
					<a href="/admin/zcm/add">添加注册码</a> 
					<a href="/admin/zcm/">管理注册码</a> 
				<%end%>
			</div>
		</div>
		<div id="center">
			<div class="side">
				<div id="left">
					<%= flash[:notice] %>
					<%= yield  %>				
				</div>
				<div id="right">
					<div id="login">
						<%=render :partial=>"layouts/login"%>
					</div>
					<div class="space h10"></div>
					<div id="letter">
						<%=render :partial=>"layouts/letter"%>
					</div>										
				</div>
			</div>
		</div>
		<div id="bottom">
			<div class="side">
				<div id="copyright">
					<a href="#">广告服务</a>│
					<a href="#">关于我们</a>│
					<a href="#">联系我们</a>│
					<a href="#">友情链接</a>
					<hr color="#5c8ab3" size="3" width="200px"/>
					<span>© 2008 52ZCM.COM. All Rights Reserved. </span>
				</div>
				<div style="display:none">
					<script language="javascript" src="http://count20.51yes.com/click.aspx?id=207550051&logo=1"></script>
				</div>
			</div>
		</div>
	</div>
</body>
</html>
